#ifndef __KA_H__
#define __KA_H__
#include <stdint.h>

#define RSA_SIZE 1024

int ka_init();

void ka_deinit();

int ka_guest_encrypt(const char *host, uint8_t *idata, int ilen,uint8_t *odata, int *olen);
int ka_guest_decrypt(const char *host, uint8_t *idata, int ilen,uint8_t *odata, int *olen);

int ka_host_encrypt(uint8_t *idata, int ilen,uint8_t *odata, int *olen);
int ka_host_decrypt(uint8_t *idata, int ilen,uint8_t *odata, int *olen);

int ka_add_guest(const char *guest);
int ka_delete_guest(const char *guest);



#endif
